using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using BookingDB.Models.Mapping;

namespace BookingDB.Models
{
    public partial class BioBookingContext : DbContext
    {
        static BioBookingContext()
        {
            Database.SetInitializer<BioBookingContext>(null);
        }

        public BioBookingContext()
            : base("Name=dmaa0212a_6Context")
        {
        }

        public DbSet<EntityBooking> Bookings { get; set; }
        public DbSet<EntityCity> Cities { get; set; }
        public DbSet<EntityCustomer> Customers { get; set; }
        public DbSet<EntityEmployee> Employees { get; set; }
        public DbSet<EntityPartBooking> PartBookings { get; set; }
        public DbSet<EntityPerson> People { get; set; }
        public DbSet<EntityPrice> Prices { get; set; }
        public DbSet<EntitySeat> Seats { get; set; }
        public DbSet<EntityShow> Shows { get; set; }
        public DbSet<EntityShowRoom> ShowRooms { get; set; }
        public DbSet<EntityShowType> ShowTypes { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new BookingMap());
            modelBuilder.Configurations.Add(new CityMap());
            modelBuilder.Configurations.Add(new CustomerMap());
            modelBuilder.Configurations.Add(new EmployeeMap());
            modelBuilder.Configurations.Add(new PartBookingMap());
            modelBuilder.Configurations.Add(new PersonMap());
            modelBuilder.Configurations.Add(new PriceMap());
            modelBuilder.Configurations.Add(new SeatMap());
            modelBuilder.Configurations.Add(new ShowMap());
            modelBuilder.Configurations.Add(new ShowRoomMap());
            modelBuilder.Configurations.Add(new ShowTypeMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
        }
    }
}
